package com.sen.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sen.dao.RoleDao;
import com.sen.entity.RoleEntity;
import com.sen.service.RoleService;
import com.sen.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.management.relation.Role;
import java.util.ArrayList;
import java.util.List;

@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleDao, RoleEntity> implements RoleService {

    @Autowired
    RoleDao roleDao;

    @Override
    public List<RoleEntity> getRoleByid(String id) {
        return roleDao.getRoleByid(id);
    }

    @Override
    public RoleEntity getRoleByUsername(String username) {
        return roleDao.getRoleByUsername(username);
    }

}
